package com.itcast.interfacedemo.Demo02;

import java.util.Scanner;

/*
要写注释哦!!!
*/
public class Test {
    private static final int FANG_AN_YI=1;
    private static final int FANG_AN_ER=2;
    public static void main(String[] args) {
        System.out.println("请输入以下命令：");
        System.out.println("1、方案一");
        System.out.println("2、方案二");
        Scanner sc = new Scanner(System.in);
        int choose = sc.nextInt();
        switch (choose) {
            case FANG_AN_YI:
                StudentManager1 studentManager = new StudentManager1();
                studentManager.printInfo();
                studentManager.printAverage();
                break;
            case FANG_AN_ER:
                //方案2
                StudentManager2 studentManager2 = new StudentManager2();
                studentManager2.printInfo();
                studentManager2.printAverage();
                break;
        }
    }
}
